<template>
  <div id="app">
    <button @click="getRequest">emit request</button>
  </div>
</template>

<script>
import axios from "axios";
export default {
  name: "app",
  methods: {
    getRequest() {
      axios.get("http://localhost:8080/data").then(
        (response) => { 
          console.log(response.data);
        },
        (error) => {
          console.log(error);
        }
      );
    },
  },
};
</script>

<style>
</style>